﻿@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
@model Scheduling.Models.BookingRequest

<h2>@Model.ID Booking Request Information</h2>
<table class="Info">
    <tr>
        <th>Booker:</th>
        <td>@Model.Booker.ID</td>
    </tr>
    <tr>
        <th>Course instance ID: </th>
        <td>@Model.CourseInstance.ID</td>
    </tr>
    <tr>
        <th>Year: </th>
        <td>@Model.Year</td>
    </tr>
    <tr>
        <th>Start period: </th>
        <td>@Model.StartPeriod</td>
    </tr>
    <tr>
        <th>Preferred start time: </th>
        <td>@Model.Time:15</td>
    </tr>
    <tr>
        <th>Days: </th>
        <td>
            @foreach (var d in Model.AllowedDays)
            {
                <tr><td> - @d.Key.ToString()</td><td>@d.Value.ToString()</td></tr>
            }
        </td>
    </tr>
    <tr>
        <th>Number of lectures: </th>
        <td>@Model.LectureCount</td>
    </tr>
    <tr>
        <th>Lecture length: </th>
        <td>@Model.LectureLength hrs </td>
    </tr>
    <tr>
        <th>Preferred room: </th>
        <td>@Model.RoomPattern</td>
    </tr>
    <tr>
        <th>Room capacity: </th>
        <td>@Model.RequiredCapacity seats</td>
    </tr>
    <tr>
        <th>Room type: </th>
        <td>@Model.RoomType</td>
    </tr>
    <tr>
        <th>Prioritize by: </th>
        <td>@Model.Priority</td>
    </tr>
</table>

@Html.ActionLink("Return to My Booking Requests", "List") <br/>